<?php
session_start();
mysql_connect("localhost", "", "");
mysql_query("USE stats_syslog");
$query = mysql_query("SELECT COUNT(*) AS count FROM maillog");
$result = mysql_result($query,0,count);
print "Number of records = $result";
?>
